package io;

public class TimeDemo {
    public static void main(String[] args) {
        //记录UTC时间   自1970-01-01 00:00:00到当前系统时间所经过的毫秒
        long now = System.currentTimeMillis();
        System.out.println(now);

        long max = Long.MAX_VALUE;
        max = max/1000/60/60/24/365;
        System.out.println("公元:"+(1970+max));
    }
}
